﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="list.aspx.cs" Inherits="nst_movie_list" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <a href="MovieAdd.aspx" target="_blank">添加参数记录</a>
        <br />
        数据库名<asp:TextBox ID="txtDatabaseName" runat="server" Text="SQLiteDatabaseMovie"></asp:TextBox>
        表名<asp:TextBox ID="txtDataTableName" runat="server" Text="UncheckedMovieXiaoDiao"></asp:TextBox>
        siteKindId<asp:TextBox ID="txtSiteKindId" runat="server" Text="xddy_dz"></asp:TextBox><asp:Button 
            ID="ButtonRefreshData" runat="server" onclick="ButtonRefreshData_Click" 
            Text="查询数据" ValidationGroup="valid" />
       <%-- <asp:DropDownList ID="ddlTableName" runat="server">
            <asp:ListItem>UncheckedMovieXiaoDiao</asp:ListItem>
            <asp:ListItem>UncheckedMovieDy163</asp:ListItem>
        </asp:DropDownList>--%>

        <asp:RequiredFieldValidator ID="ReqDB" runat="server" 
            ControlToValidate="txtDatabaseName" ErrorMessage="数据库名" ValidationGroup="valid"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="ReqTable" runat="server" 
            ControlToValidate="txtDataTableName" ErrorMessage="表名" ValidationGroup="valid"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="ReqKind" runat="server" 
            ControlToValidate="txtSiteKindId" ErrorMessage="siteKindId" ValidationGroup="valid"></asp:RequiredFieldValidator>
        <br /><br />

        发布到分类<asp:DropDownList ID="ddlMovieType" runat="server">
            <asp:ListItem Value="31">爱情片</asp:ListItem>
            <asp:ListItem Value="32">喜剧片</asp:ListItem>
            <asp:ListItem Value="33">动作片</asp:ListItem>
            <asp:ListItem Value="34">剧情片</asp:ListItem>
            <asp:ListItem Value="35">恐怖片</asp:ListItem>
            <asp:ListItem Value="36">动画片</asp:ListItem>
            <asp:ListItem Value="37">科幻片</asp:ListItem>
            <asp:ListItem Value="38">警匪片</asp:ListItem>
            <asp:ListItem Value="39">战争片</asp:ListItem>
            <asp:ListItem Value="40">悬疑片</asp:ListItem>
        </asp:DropDownList>
        &nbsp;&nbsp;
        <asp:Button ID="ButtonPublish" runat="server" onclick="ButtonPublish_Click" Text="发布到正式表" />

        <asp:GridView ID="GridViewMovie" runat="server" AutoGenerateColumns="False">
            <Columns>                
                <asp:TemplateField HeaderText="选择">
                    <ItemTemplate>                       
                        <asp:CheckBox ID="CheckBoxId" Checked="true" runat="server" Text="选择" />
                    </ItemTemplate>                    
                </asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="id" />
                <asp:TemplateField HeaderText="title">                   
                    <ItemTemplate>
                        <a href='MovieEdit.aspx?id=<%# Eval("id") %>'><%# Eval("title")%></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="siteKindId" HeaderText="siteKindId" />                
                <asp:BoundField DataField="year" HeaderText="year" />
                <asp:BoundField DataField="area" HeaderText="area" />
                <asp:BoundField DataField="imgLocal" HeaderText="imgLocal" />
                <asp:BoundField DataField="img" HeaderText="img" />
            </Columns>
        </asp:GridView>
    </div>
    </form>
</body>
</html>
